package belajarzk.ui.util;

import org.zkoss.zk.ui.WrongValueException;
import org.zkoss.zul.Doublebox;

public class MyDoublebox extends Doublebox {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1222797048406767194L;

	public MyDoublebox() {
		super();
		init();
	}

	public MyDoublebox(double value) throws WrongValueException { 
		super(value);
		init();
	}

	public MyDoublebox(Double value) throws WrongValueException {
		super(value);
		init();
	}
	
	private void init(){
		setCols(30);
		setStyle("text-align: right;");
		setFormat("#,##0.##");
	}

}
